﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="SEM" runat="server"></asp:ScriptManager>
        <asp:HiddenField ID="hid" runat="server"/>
        <asp:Label ID="lblval" runat="server"></asp:Label>
        <asp:TextBox ID="txtname" runat="server"></asp:TextBox>
        <asp:Button ID="btnhid" runat="server" Visible="false" />
        <asp:Button ID="btnsave" runat="server" Text="Save" OnClick="btnsave_Click" />
        <AjaxControl:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="btnhid" DisplayModalPopupID="MPE">
        </AjaxControl:ConfirmButtonExtender>
        <AjaxControl:ModalPopupExtender ID="MPE" runat="server" TargetControlID="btnhid" CancelControlID="btncancel" PopupControlID="pnlpopup">
        </AjaxControl:ModalPopupExtender>
        <asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="100px" Width="400px"
            >
            <table width="100%" style="border: Solid 2px #D46900; width: 100%; height: 100%"
                cellpadding="0" cellspacing="0">
                <tr>
                    <td style="height: 10%; color: White; font-weight: bold; padding: 3px; font-size: larger;
                        font-family: Calibri">
                        Confirm Box
                    </td>
                    <td>
                        <asp:Button ID="btncancel" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left" style="padding: 5px; font-family: Calibri">
                        <asp:Label ID="lblUser" runat="server" Text="Are you sure you want to delete selected Record?" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="right">
                        <asp:ImageButton ID="btnYes" runat="server" onclick="btnYes_Click" />
                        <asp:ImageButton ID="btnNo" runat="server" onclick="btnNo_Click"/>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
